package com.rajaev.dtu.tractor.infrastructure.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.integration.redis.util.RedisLockRegistry;

/**
 * @Created with IDEA
 * @author: tianjie
 * @Date:2019/5/28
 * @Time:15:35
 */
@Configuration
public class RedisLockConfig {

    @Bean
    RedisLockRegistry redisLockRegistry(RedisConnectionFactory redisConnectionFactory){
        return new RedisLockRegistry(redisConnectionFactory,"bm");
    }
}
